package com.template.method.pattern.template;

/**
 * @author cc
 * @classname BigDataCourse
 * @description TODO
 * @date 2022/3/28 14:14
 */
public class BigDataCourse extends NetworkCourse{

    private boolean flag = false;

    public BigDataCourse(boolean flag) {
        this.flag = flag;
    }

    @Override
    void checkHomework() {
        System.out.println("检查大数据的课后作业");
    }

    @Override
    protected boolean needHomework() {
        return flag;
    }
}
